package com.warframe.entity.database;

import javax.persistence.*;
import java.util.Objects;

@Entity
@Table(name = "RivenMod", schema = "main", catalog = "")
public class RivenModEO {
    private String en;
    private String cn;
    private Short type;

    @Id
    @Column(name = "en")
    public String getEn() {
        return en;
    }

    public void setEn(String en) {
        this.en = en;
    }

    @Basic
    @Column(name = "cn")
    public String getCn() {
        return cn;
    }

    public void setCn(String cn) {
        this.cn = cn;
    }

    @Basic
    @Column(name = "type")
    public Short getType() {
        return type;
    }

    public void setType(Short type) {
        this.type = type;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        RivenModEO that = (RivenModEO) o;
        return Objects.equals(en, that.en) &&
                Objects.equals(cn, that.cn) &&
                Objects.equals(type, that.type);
    }

    @Override
    public int hashCode() {

        return Objects.hash(en, cn, type);
    }
}
